PATH 
Mac OS 8 and 9 Developer Documentation > Text and Other International Services > Apple Type Services for Unicode Imaging (ATSUI) > Apple Type Services for Unicode Imaging Reference

     

Swash Font Feature Selector Constants

A swash is a variation, often ornamental, of an existing glyph. Using font tables, ATSUI can identify and automatically substitute swashes for existing glyphs. Alternatively, your application can allow the user to choose swash forms at the time the text layout object is created.

Collections of swash forms called smart swashes can be designated by the font designer and put in swash tables. Smart swashes are contextual and swashes are not. If the font supports the smart swashes feature type, you can select features that allow you to specify sets of swashes, such as shown in Table D-22.

Table D-22  Feature selectors for the kSmartSwashType feature type

Constant

Explanation

kWordInitialSwashesOnSelector
kWordInitialSwashesOffSelector
Allows or prevents the substitution of swash variants that begin words.
kWordFinalSwashesOnSelector
kWordFinalSwashesOffSelector
Allows or prevents the substitution of swash variants that end words.
kLineInitialSwashesOnSelector
kLineInitialSwashesOffSelector
Allows or prevents the substitution of swash variants that begin lines.
kLineFinalSwashesOnSelector
kLineFinalSwashesOffSelector
Allows or prevents the substitution of swash variants that end lines.
kNonFinalSwashesOnSelector
kNonFinalSwashesOffSelector
Allows or prevents the substitution of swash variants that can occur at the beginnings or interiors of words

Figure D-13 shows the same phrase written four times: first without swash variants, then with line initials, then with line finals, and finally with both line initials and line finals.

Figure D-13  Specifying different swashes with feature selectors

Note:  If you want your application to define its own set of swashes, it can use glyph substitutions to replace the ATSUI glyph choices with its own.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)